﻿<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>Hi-Blogs QQConnect JSDK - redirectURI </title>
    <script src="Scripts/jquery-1.8.2.min.js"></script>
    <script src="Scripts/blog/jquery.BlogCommon.js"></script>
    <style type="text/css">
        html, body {
            font-size: 14px;
            line-height: 180%;
        }
    </style>

</head>
<body>

    <div>
        <h3 id="mgss">数据传输中，请稍后...</h3>
    </div>

</body>
</html>

<script type="text/javascript">
    $(function () {      
        $.post("/UserManage/ThirdLoginCallback", { code: $.getUrlVar("code"), loginType: $.getUrlVar("state") }, function (obj) {
            try {
                if (window.opener.location.href.indexOf("haojima.net/UserManage/Login") >= 0)
                    window.opener.location.href = "/";
                else
                    window.opener.location.reload(true);//强制刷新
            } catch (e) {
                alert("自动刷新或跳转失败~");
            }
            window.close();
        });
    });
</script>